#include <iostream>
#include <vector>
#include "Line.h"

using namespace std;

// If line derived from StationCmd, Without StationCmd(command) will cause error: "no default constructor in StationCmd"
// Line::Line(string command) : StationCmd(command){
Line::Line(string command){
	setCommand(command);
	stations = new vector<StationCmd>();

	StationCmd *cur;
	cur = new StationCmd("First", "Second");
	stations->push_back(*cur);	
	stations->push_back(StationCmd("Second"));
}

void Line::execute(){
	std::cout << "Current line is: " << getCommand() << endl;
}
